﻿using IdentityService.Domain.Aggregates.RoleAggregate;
using IdentityService.Domain.Aggregates.UserAccountAggregate;

namespace IdentityService.Infrastructure.Dtos
{
    public class RoleDto
    {
        public long Id { get; init; }
        public string? Name { get; private set; }
        public string? Description { get; private set; }
        public List<UserAccountDto> UserAccounts { get; private set; } = new();
        public List<RolePermitDto> Permits { get; set; } = new();
    }

    public class RolePermitDto
    {
        public long Id { get; init; }
        public long RoleId { get; init; }
        public long PermitId { get; init; }
    }
}
